package com.example.cloudAlibaba.myHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.example.springcloud.utils.Constant;
import com.example.springcloud.utils.ResultEntity;

/**
 * @author hanj.cn@outlook.com
 */
public class CustomerBlockHandler {

    public static ResultEntity handlerException1(BlockException exception) {

        return new ResultEntity<>(Constant.RESPONSE_CODE_500, "global handlerException ---1 /(ㄒoㄒ)/~~");
    }

    public static ResultEntity handlerException2(BlockException exception) {

        return new ResultEntity<>(Constant.RESPONSE_CODE_500, "global handlerException ---2 /(ㄒoㄒ)/~~");
    }

}
